package com.hebeu.xwl.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

public class User {
//    userId	int
//    account	varchar
//    password	varchar
//    name	varchar
//    maxBatch	int
//    maxArticle	int
@TableId(type = IdType.AUTO)
    private int userId;
    private String account;
    private String password;
    private String name;
    private int maxBatch;
    private int maxArticle;

    public User() {
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getMaxBatch() {
        return maxBatch;
    }

    public void setMaxBatch(int maxBatch) {
        this.maxBatch = maxBatch;
    }

    public int getMaxArticle() {
        return maxArticle;
    }

    public void setMaxArticle(int maxArticle) {
        this.maxArticle = maxArticle;
    }

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", account='" + account + '\'' +
                ", password='" + password + '\'' +
                ", name='" + name + '\'' +
                ", maxBatch=" + maxBatch +
                ", maxArticle=" + maxArticle +
                '}';
    }

    public User(int userId, String account, String password, String name, int maxBatch, int maxArticle) {
        this.userId = userId;
        this.account = account;
        this.password = password;
        this.name = name;
        this.maxBatch = maxBatch;
        this.maxArticle = maxArticle;
    }
}
